<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>质量追溯</title>
    <link href="/css/reset.css" rel="stylesheet"  type="text/css">
    <link href="/css/NewExposureStage.css" rel="stylesheet"  type="text/css">
    <!--banner js-->
    <script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="/js/myJS.js"></script>
    <script type="text/javascript" src="/js/jquery.js"></script>
    <script type="text/javascript" src="/js/skdslider.min.js"></script>
    <!--<script src="/js/jquery.min.js"></script>-->
    <link rel="stylesheet" href="/css/jquery.pagination.css" />
    <link rel="stylesheet" href="/css/list.css">
    <!--end banner js-->
</head>
<body>
<!--top-->
<div class="header">
    <div id="header"></div>
</div>
<!--banner-->
<div class="banner_tongYong">
    <div class="banner_tongYong_box">
        <div class="i_con_title">
            <h2 class="en_titlestyle1" style="color: #fff"><span class="bold">NewExposure</span> stage</h2>
            <h2 class="cn_titlestyle1">曝光台</h2>
            <hr class="hrstyle1">
        </div>
    </div>
</div>


<!--news-->
<div class="news">
    <div class="news_box">
    </div>
    <div class="fenye">
        <div class="box">
            <div id="pagination3" class="page fl"></div>
            <!--<div class="info fl">-->
                <!--<p>当前页数：<span id="current3">4</span></p>-->
            <!--</div>-->
        </div>
    </div>

</div>


<!--footer-->
<footer>
    <!--<p>黑龙江省农业委员会 &nbsp;&nbsp;中国联合网络通信集团有限公司黑龙江省分公司共同建设 &nbsp;&nbsp;哈尔滨凌之迅网络信息技术股份有限公司技术支持 &nbsp;&nbsp;黑ICP备12004997号-3 &nbsp;&nbsp;合作咨询热线：0451-86508885</p>-->
    <!--<div id="footer"></div>-->
    <#include '/common/footer.html' />
</footer>
<script>
    $(function () {
        $(header).load("/common/top.html?type=曝光台");
//        $(footer).load("/common/footer.html")
    });
</script>
</body>
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery.pagination.min.js"></script>
<script>
    var count = "${count}";
    // 分页
    $(function() {
        var pagination = "{'page': '1','rows': '10','sord': 'desc','sidx': 'create_time'}";
        function createPagination(container){
            console.log(count);
            init(pagination);
            var options = {
                coping:true,    //首页和尾页
                homePage:'首页',
                endPage:'末页',
                prevContent:'上页',
                nextContent:'下页',
                showData:6,    //每页数据条数
                totalPage:Math.ceil(count / 6), //页数
                callback:function(api){
                    pagination = "{'page': '" + $("#pagination3").pagination("getPage").current + "','rows': '6','sord': 'desc','sidx': 'create_time'}";
                    init(pagination);
                }
            };
            $("#"+container).pagination(options);
        }
        function init(pagination){
            $.getJSON('/listDoType.html?newsType=${newsType!}',{'pagination':pagination},function(json){
                console.log(json);
                console.log(json.rows);
                var container =$('.news_box');
                var dataHtml="" ;
                $.each(json.rows, function(index, obj){
                    dataHtml +=
                        '<div class="news">'
                            +'<div class="news_box">'
                                +'<ul>'
                                    +'<li>'
                                        +'<a href="'
                                        +'/NewExposureStage_details/'+ obj.newsId
                                        +'">'
                                        +'<h4 >'
                                        + obj.newsTitle
                                        + '</h4>'
                                        + '<span >'
                                        + obj.createTime.substring(0,10)
                                        +'</span>'
                                        +'</a>'
                                    +'</li>'
                                +'</ul>'
                            +'</div>'
                        +'</div>';
                });
                container.html(dataHtml);
            });
        }
        createPagination("pagination3")
    });

</script>
</html>
































